package org.easy.system.manage.dao;

import java.util.List;

import org.easy.system.manage.dto.DeptQueryParam;
import org.easy.system.manage.entity.SysDept;

public interface SysDeptMapper {
	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int deleteByPrimaryKey(Long deptId);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int insert(SysDept record);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int insertSelective(SysDept record);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	SysDept selectByPrimaryKey(Long deptId);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int updateByPrimaryKeySelective(SysDept record);

	/**
	 *
	 * @mbggenerated 2019-10-17
	 */
	int updateByPrimaryKey(SysDept record);

	/**
	 * 根据父id查询部门信息
	 * 
	 * @param parentId
	 * @return
	 */
	List<SysDept> queryByParentId(Long parentId);

	/**
	 * 分页查询部门信息
	 * 
	 * @param deptQueryParam
	 * @return
	 */
	List<SysDept> queryByPage(DeptQueryParam deptQueryParam);
}